/**
 * 
 */
package org.t2.backstage.module.gameserver.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.gaming.service.repository.annotation.NoCache;
import org.gaming.service.service.redis.SystemOneToManyEntity;
import org.springframework.stereotype.Repository;

/**
 * @author YY 公告
 */
@Repository
@NoCache(relation = {"ownerId", "id"})
@Table(comment = "游戏公告表", dbAlias = "backstage")
public class Bulletin extends SystemOneToManyEntity {
	@Id(strategy = Strategy.AUTO, autoBase = 1)
	@Column(comment = "公告ID")
	private long id;
	@Column(comment = "公告标题")
	private String title;
	@Column(comment = "公告内容", extra = "text")
	private String content;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public Long redisHashKey() {
		return id;
	}
}
